package com.proton.carepatchtemp.database.table;

import com.proton.carepatchtemp.database.BaseBean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.OrderBy;
import org.greenrobot.greendao.annotation.Unique;

/**
 * Created by MoonlightSW on 2017/2/22.
 */
@Entity
public class HealthTip extends BaseBean {
    /**
     * id : 4
     * title : 测试3
     * summary : 测试3
     * url : http://www.baidu.com
     * image :
     * time : 1487317268000
     * deleted : 0
     */
    @NotNull
    @Id(autoincrement = false)
    @Unique
    private Long id;
    private String title;
    private String summary;
    private String url;
    private String image;
    @OrderBy("time DESC")
    private long time;
    private int deleted;

    @Generated(hash = 1845022159)
    public HealthTip(@NotNull Long id, String title, String summary, String url,
                     String image, long time, int deleted) {
        this.id = id;
        this.title = title;
        this.summary = summary;
        this.url = url;
        this.image = image;
        this.time = time;
        this.deleted = deleted;
    }

    @Generated(hash = 418778725)
    public HealthTip() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }
}
